package cn.wolfcode.luowowo.article.util;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;

@Getter
@Setter
@ToString
public class TravelConditionUtil {

    public static final HashMap<Integer ,TravelConditionUtil> daysMap = new HashMap<>();
    public static final HashMap<Integer ,TravelConditionUtil> perExpendMap = new HashMap<>();
    public static final HashMap<Integer ,TravelConditionUtil> travelTimeMap = new HashMap<>();

    static {
        //天数
        daysMap.put(-1,null);
        daysMap.put(1,new TravelConditionUtil(0,3));
        daysMap.put(2,new TravelConditionUtil(4,7));
        daysMap.put(3,new TravelConditionUtil(8,14));
        daysMap.put(4,new TravelConditionUtil(15,Integer.MAX_VALUE));

        //人均消费
        perExpendMap.put(-1,null);
        perExpendMap.put(1,new TravelConditionUtil(0,999));
        perExpendMap.put(2,new TravelConditionUtil(1000,6000));
        perExpendMap.put(3,new TravelConditionUtil(6001,20000));
        perExpendMap.put(4,new TravelConditionUtil(20001,Integer.MAX_VALUE));

        //旅游时间
        travelTimeMap.put(-1,null);
        travelTimeMap.put(1,new TravelConditionUtil(1,2));
        travelTimeMap.put(2,new TravelConditionUtil(3,4));
        travelTimeMap.put(3,new TravelConditionUtil(5,6));
        travelTimeMap.put(4,new TravelConditionUtil(7,8));
        travelTimeMap.put(5,new TravelConditionUtil(9,10));
        travelTimeMap.put(6,new TravelConditionUtil(11,12));
    }
    private int min;
    private int max;

    public TravelConditionUtil(int min, int max){
        this.min = min;
        this.max = max;
    }

}
